<?php if(!defined('THINKAPK_PATH')) exit();?>
<div class="body mtop">
	<div class="w690 fl">
    	<div class="box new-div" id="new-div">
        	<h3>
        	<p class="title" title="Android应用最新更新"></p>
            <ul>
                <li class="cur" id="app-li-0"><a href="javascript:;">全部</a></li>
                <volist name="recommend_app" id="appi" offset="0" length="6">
                <li id="app-li-{$appi.id}"><a href="javascript:void({$appi.id});" title="{$appi.name}">{$appi.name}</a></li>
                </volist>
            </ul>
       		</h3>
            <div class="content">
            <?php if($new_app_list): ?>
            <ul>
            <volist name="new_app_list" id="list">
                <li>
                    <p class="times star{$list.recommend}" style="margin-right:5px;">{$list.time}</p>
                    <a href="{$list.url}" target="_blank"><img src="{$list.icon}" alt="{$list.short_title}" class="icon" width="50" height="50" align="left" /></a>
                    <a href="{$list.url}" target="_blank" title="{$list.short_title}">{:sub_str($list['short_title'], 20)}</a><br />
                    <span>{$list.gdesc}</span>
                </li>
            </volist>
            </ul>
            <?php else: ?>
            <p style="padding:10px; color:#999999;">该类暂无推荐应用。</p>
            <?php endif; ?>
            </div>
            <volist name="recommend_app" id="appb" offset="0" length="6">
            <div class="content none" id="app-box-{$appb.id}"></div>
            </volist>
        </div>
        <script language="javascript">
			$("#new-div .content").ThinkAPKTab({thumbObj: '#new-div h3 li', slideTime:0, changeType: 'slide', thumbNowClass: 'cur', autoChange: false});
			ThinkAPK.AD('newappbottom');
		</script>
        <div class="box mtop hots new-div">
        	<h3>
            <span class="more"><a href="{:U('thinkapk://app/index')}">Android常用应用推荐，酷玩必备。</a></span>
            <p class="title1">日常必备应用</p>
            </h3>
            <div class="content">
            <volist name="bibei" id="bb">
            <if condition="!empty($bb['child'])">
            <p class="th"><span class="more"><a href="{$bb.url}" target="_blank" title="更多{$bb.name}">更多{$bb.name}的应用.</a></span><b>{$bb.name}</b></p>
            <ul>
            <volist name="bb.child" id="list">
                <li>
                    <p class="times star{$list.recommend}" style="margin-right:5px;">下载：{$list.down_total}次</p>
                    <a href="{$list.url}" target="_blank"><img src="{$list.icon}" alt="{$list.short_title}" class="icon" width="50" height="50" align="left" /></a>
                    <a href="{$list.url}" target="_blank" title="{$list.short_title}">{:sub_str($list['short_title'], 20)}</a><br />
                    <span>{$list.gdesc}</span>
                </li>
            </volist>
            </ul>
            </if>
            </volist>
            </div>
        </div>
    </div>
    <div class="w280 fr">
    	<script language="javascript">ThinkAPK.AD('apprighttop');</script>
        <div class="download-top mtop">
    	<div class="box-1">
        	<h3>
            	<span class="more"><a href="{:U('thinkapk://top/index')}" target="_blank" title="更多Android应用下载排行">更多.</a></span>
            	<p class="title" title="下载排行">下载排行</p>
            </h3>
            <div class="content">
            	<ul class="app-tops">
                <volist name="tops" id="all">
                	<li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                	<li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                	<span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                    <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" class="icon" align="left" /></a>
                    <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                    已下载：{$all.total}次
                    </li>
                </volist>
                </ul>
            </div>
         </div>
       </div>
       <script>
	   $(".app-tops li.cur").ThinkAPKTab({thumbObj: '.app-tops li.on', slideTime:0, changeType: 'slide', thumbNowClass: 'none', autoChange: false});
	   ThinkAPK.AD('apptopsbottom');
	   </script>
    </div>
</div>
<script language="javascript">
$(function(){
	ThinkAPK.LoadAppHover('.new-div h3 li', '/index.php?m=Ajax&a=new_apps');
});
</script>